package main

import (
    "bytes"
    "fmt"
    "os/exec"
)
func main() {
    cmd := exec.Command("bash", "-c", `go run scanchar.go |sort |uniq \
	-c|sort -n|tail -1 |awk '{printf "出现最多的字符是%c,  一共出现了%d次\n",$2,$1}'`)
    var out bytes.Buffer
    cmd.Stdout = &out
    err := cmd.Run()
    if err != nil {
        fmt.Println("Error:", err)
    }
    fmt.Println("Output:", out.String())
}